const express = require("express")
const app = express();
const http = require('http').Server(app);

app.use(express.json())

app.post('/', function (req, res) {
    var msg = req.body.msg;
    console.log("python: " + msg);
    res.send("got it")
});

http.listen(3000, function () {
    console.log('listening port 3000...');
});